
if(typeof Class == "undefined")
{
	Class = {
	  create: function() {
	    return function() {
	      this.initialize.apply(this, arguments);
	    }
	  }
	}
}
var JavaScriptExecuter = Class.create();
JavaScriptExecuter.prototype = {
	initialize: function(url) {
		this.url = url;
		this.osrc = null;
	},
	run: function(url)
	{
		if(url!=null)
			this.url=url;
		if(this.url!=null)
		{
			if(this.osrc!=null)
			{
				document.body.removeChild(this.osrc);
				this.osrc=null;
			}
			var scr=document.createElement('script');
			scr.type = "text/javascript" ;
			scr.setAttribute("src",this.url);
			document.body.appendChild(scr);
			this.osrc=scr;
		}
	}
}
